services:
  guacd:
    image: registry.cn-hangzhou.aliyuncs.com/weizhihui/guacd:1.5.5
    container_name: guacd
    restart: always
    volumes:
      - {{ monitoring_volumes }}/guacd:/usr/local/next-terminal/data
    networks:
      monitor:

  next-terminal:
    image: registry.cn-hangzhou.aliyuncs.com/weizhihui/next-terminal:v1.3.9
    container_name: next-terminal
    restart: always
    environment:
      - DB=mysql
      - MYSQL_HOSTNAME={{ mysql.host }}
      - MYSQL_PORT={{ mysql.port }}
      - MYSQL_USERNAME={{ mysql.user }}
      - MYSQL_PASSWORD={{ mysql.password }}
      - MYSQL_DATABASE={{ mysql.database }}
      - GUACD_HOSTNAME=guacd
      - GUACD_PORT=4822
    ports:
      - "8088:8088"
    volumes:
      - /etc/localtime:/etc/localtime
      - {{ monitoring_volumes }}/next-terminal:/usr/local/next-terminal/data
    networks:
      monitor:

networks:
  monitor:
    external: true
